package com.pureut.storage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.storage.domain.StockOutInfoDetail;
import com.pureut.storage.dto.NewStockInfoDetailDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StockOutInfoDetailMapper extends BaseMapper<StockOutInfoDetail> {

    /**
     * 获取当前批次的总重量
     * @param inputValue
     * @return
     */
    Double getPiHao(@Param("inputValue") String inputValue);

    /**
     * 获取当前单据的总重量
     * @param inputValue
     * @return
     */
    Double getDoc(@Param("inputValue") String inputValue);

    /**
     * 查询生产领料列表
     * @param docNum
     * @return
     */
    List<NewStockInfoDetailDto> getStockInfoDetailList(String docNum);
}
